<%@ page import="com.com.atstudy.entites.Address" %>
<%@ page import="java.util.ArrayList" %><%--
  Created by IntelliJ IDEA.
  User: admin
  Date: 2023/2/1
  Time: 9:29
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
  <%
      ArrayList<Address> list = new ArrayList<>();
      list.add(new Address("北京","东城区"));
      list.add(new Address("上海","浦东"));
      list.add(new Address("广州","越秀区"));
      list.add(new Address("深圳","大湾区"));
      request.setAttribute("list",list);
  %>
  <h3>${list}</h3>
  <c:forEach var="addr" items="${list}">
      <h5>${addr.province},${addr.city}</h5>
  </c:forEach>
</body>
</html>
